// @ts-ignore
import request from '@/utils/request';


export const addStudent = (data) => {
    return request.post('/api/regisrer', data)
}
export const getStudentList = () => {
    return request.get('/api/user/get')
}
export const delStudentList = (username) => {
    console.log('username1', username);
    return request.delete('/api/user/delete', { params: { username } })
}
export const updateKey = (data) => {
        console.log('updateKey', data);
        return request.put('/api/password/update', data)
    }
    // export const modifyKey = (data) => {
    //     return request.put('/api/password/update')
    // }